package Method;


/**
 * ClassName:MethodDemo6
 * Package:Method
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/12-0:03
 * @Version:v1.0
 */
public class MethodDemo6 {
    public static void main(String[] args) {
        method(2);
    }
    public static void method(int r){
        double t=3.14;
        double result = t*r*r;
        System.out.println("圆的面积是："+result);
    }

}
